/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;
const int ROW=10;
const int COLUMN=10;
int matrix[ROW][COLUMN]={0};
int main_36()
{
    int row,column;
    scanf("%d%d",&row,&column);
    //input
    for (int i=0;i<row;++i )
    {
        for (int j=0;j<column;++j )
        {
            scanf("%d",&matrix[i][j]);
        }
    }
    //output
    for (int i=0;i<row;++i )
    {
        for (int j=0;j<(column-1);++j )
        {
            printf("%d ",matrix[i][j]);
        }
        printf("%d\n",matrix[i][column-1]);
    }
    return 0;
}
